
#include <stdio.h>
#include <stdlib.h>
#include "reflecxx.h"

struct my_stats {
    unsigned long ms_min;
    unsigned long ms_max;
    unsigned long long ms_total;
};

extern struct reflecxx_full_type my_stats_type_info;

int main(int argc, char *argv[])
{
    struct my_stats ms = { 5, 0xf0000000, 123456789012345ULL };
    char buffer[1024];

    reflecxx_print(buffer, sizeof(buffer), &my_stats_type_info, &ms);
    printf("%s\n", buffer);

    return EXIT_SUCCESS;
}
